// File:    RepasseAoCliente.cs
// Author:  CelesteMGB
// Created: domingo, 26 de fevereiro de 2012 14:03:00
// Purpose: Definition of Class RepasseAoCliente

using System;
using System.Text;

namespace DA_OOMModel
{
   public class RepasseAoCliente
   {
      private int recIdRepasseCliente;

      private Iesi.Collections.ISet lancamentoFinanceiro;
      
      /// <summary>
      /// Property for collection of LancamentoFinanceiro
      /// </summary>
      /// <pdGenerated>Default opposite class collection property</pdGenerated>
      public virtual Iesi.Collections.ISet LancamentoFinanceiro
      {
         get
         {
            return lancamentoFinanceiro;
         }
         set
         {
            this.lancamentoFinanceiro = value;         
         }
      }
      private MovimentacaoFinanceira movimentacaoFinanceira;
      
      /// <summary>
      /// Property for MovimentacaoFinanceira
      /// </summary>
      /// <pdGenerated>Default opposite class property</pdGenerated>
      public virtual MovimentacaoFinanceira MovimentacaoFinanceira
      {
         get
         {
            return movimentacaoFinanceira;
         }
         set
         {
               this.movimentacaoFinanceira = value;
         }
      }
   
      /// <summary>
      /// Get value of property RecIdRepasseCliente.
      /// </summary>
      public virtual int RecIdRepasseCliente
      {
         get
         {
            return recIdRepasseCliente;
         }
         set
         {
            if (this.recIdRepasseCliente != value)
               this.recIdRepasseCliente = value;
         }
      }
   
      /// <summary>
      /// Get and set primary key class
      /// </summary>
      public virtual RepasseAoClientePK RepasseAoClientePK
      {
         get 
         {
            return new RepasseAoClientePK(recIdRepasseCliente);
         }
         set
         {
            if (value != null)
            {
               this.recIdRepasseCliente = value.RecIdRepasseCliente;
            }
         }
      }
   
      /// <summary>
      /// Get hash code
      /// </summary>
      /// <pdGenerated>Get hash code</pdGenerated>
      public override int GetHashCode()
      {
         int _hashCode = 0;
         _hashCode = 29 * RepasseAoClientePK.GetHashCode();
         return _hashCode;
      }
   
      /// <summary>
      /// Test if two objects are equal
      /// </summary>
      /// <param name="object">Object to compare</param>
      /// <pdGenerated>Test if two objects are equal</pdGenerated>
      public override bool Equals(object obj)
      {
         if (obj == null)
            return false;
         RepasseAoCliente cast = obj as RepasseAoCliente;
         if (!(obj is RepasseAoCliente))
            return false;
         if (!this.RepasseAoClientePK.Equals(cast.RepasseAoClientePK))
            return false;
         if (this.recIdRepasseCliente != cast.RecIdRepasseCliente)
            return false;
      
         return true;
      }
   
      /// <summary>
      /// Get object in string format
      /// </summary>
      /// <pdGenerated>Get object in string format</pdGenerated>
      public override string ToString()
      {
         StringBuilder ret = new StringBuilder();
         ret.Append( "RepasseAoCliente: " );
         ret.Append( "RecIdRepasseCliente='" + recIdRepasseCliente.ToString() + "'");
         return ret.ToString();
      }
   
   }
}